import { Component, OnInit } from '@angular/core';
import citypickerhc from '../../../assets/js/citypickerhc.js';
import LAreaData from '../../../assets/js/LAreaData1.js';

@Component({
  selector: 'app-peijian-list',
  templateUrl: './peijian-list.component.html',
  styleUrls: ['./peijian-list.component.scss']
})
export class PeijianListComponent implements OnInit {

  constructor() { }

  ngOnInit(): void {


    // 选择城市
    $("#citypick").click(function () {
      // citypicker();
      citypickerhc.citypicker(LAreaData.LAreaData, $);
    });

    // 头部高度计算
    $(function () {
      var height = $('#top').height();
      $('.mall_list_k').css('padding-top', height);
    })

    // 筛选等
    $(function () {
      $('.mall_list_top .c2>p').mousedown(function () {
        $('.mall_list_top .c2 .jiage').hide();
        $(this).next().show();
      })
      $('.mall_list_top .c2 .no').mousedown(function () {
        $('.mall_list_top .c2 .jiage').hide();
      })
      var Aa = $('.mall_list_top .c2 .jiage .top a');
      Aa.mousedown(function () {
        $(Aa).siblings().removeClass('xuanz');
        $(this).addClass('xuanz');
      })
    })
    $(function () {
      $(".list_index_my .my_dind .bt a .right_color").mousedown(function () {
        $(".fab_xq_list>ul>li .color_che").show();
      })
    })


  }

}
